<?php

/**
 * @file
 * Provides preprocess logic and other functionality for theming.
 */

// Ensure that __DIR__ constant is defined:
if (!defined('__DIR__')) {
  define('__DIR__', dirname(__FILE__));
}

// Require files:
require_once __DIR__ . '/includes/helpers.inc';
require_once __DIR__ . '/includes/libraries.inc';
require_once __DIR__ . '/includes/menus.inc';
require_once __DIR__ . '/includes/theme.inc';

// Require module-specific files:
$requires = file_scan_directory(__DIR__ . '/includes/modules', '/\.inc$/');
foreach ($requires as $require) {
  if (module_exists($require->name)) {
    require_once $require->uri;
  }
}

/**
 * Implements hook_theme().
 */
function tweme_theme($existing, $type, $theme, $path) {
  return array(
    'navbar_brand' => array(
      'variables' => array(
        'name' => NULL,
        'href' => NULL,
        'logo' => NULL,
      ),
    ),
    'navbar_toggler' => array(),
    'preface' => array(
      'path' => $path . '/templates',
      'template' => 'preface',
      'variables' => array(
        'breadcrumb' => NULL,
        'title_prefix' => array(),
        'title' => NULL,
        'title_suffix' => array(),
        'messages' => NULL,
        'help' => array(),
        'tabs' => array(),
        'actions' => array(),
      ),
    ),
    'copyright' => array(
      'variables' => array(
        'name' => NULL,
      ),
    ),
    'pure_form_wrapper' => array(
      'render element' => 'element',
    ),
    'search_input_wrapper' => array(
      'render element' => 'element',
    ),
      'fertilizer_extra_edit_form' => array(
          'render element' => 'form',
          'template' => 'fertilizer_extra_edit_form',
          'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
      ),
      'retailstore_extra_edit_form' => array(
          'render element' => 'form',
          'template' => 'retailstore_extra_edit_form',
          'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
      ),
      'fertilizer_case_list_form' => array(
          'render element' => 'form',
          'template' => 'fertilizer_case_list_form',
          'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
      ),
      'fertilizer_case_overview_form' => array(
          'render element' => 'form',
          'template' => 'fertilizer_case_overview_form',
          'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
      ),
      'fertilizer_case_edit_form' => array(
          'render element' => 'form',
          'template' => 'fertilizer_case_edit_form',
          'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
      ),
      'experts_work_list_form' => array(
          'render element' => 'form',
          'template' => 'experts_work_list_form',
          'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
      ),
      'experts_work_edit_form' => array(
          'render element' => 'form',
          'template' => 'experts_work_edit_form',
          'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
      ),
      'experts_list_form' => array(
          'render element' => 'form',
          'template' => 'experts_list_form',
          'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
      ),
      'experts_edit_form' => array(
          'render element' => 'form',
          'template' => 'experts_edit_form',
          'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
      ),
      'revisit_list_form' => array(
          'render element' => 'form',
          'template' => 'revisit_list_form',
          'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
      ),
      'revisit_edit_form' => array(
          'render element' => 'form',
          'template' => 'revisit_edit_form',
          'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
      ),
      'village_list_form' => array(
          'render element' => 'form',
          'template' => 'village_list_form',
          'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
      ),
      'village_edit_form' => array(
          'render element' => 'form',
          'template' => 'village_edit_form',
          'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
      ),
      'village_plant_list_form' => array(
          'render element' => 'form',
          'template' => 'village_plant_list_form',
          'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
      ),
      'village_plant_edit_form' => array(
          'render element' => 'form',
          'template' => 'village_plant_edit_form',
          'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
      ),
      'village_plant_modal_form' => array(
          'render element' => 'form',
          'template' => 'village_plant_modal_form',
          'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
      ),
      'village_activity_list_form' => array(
          'render element' => 'form',
          'template' => 'village_activity_list_form',
          'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
      ),
      'village_activity_edit_form' => array(
          'render element' => 'form',
          'template' => 'village_activity_edit_form',
          'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
      ),
    'brand_sales_list_form' => array(
        'render element' => 'form',
        'template' => 'brand_sales_list_form',
        'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
        ),
    'brand_sales_edit_form' => array(
        'render element' => 'form',
        'template' => 'brand_sales_edit_form',
        'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
        ),
    'brand_sales_stats_form' => array(
          'render element' => 'form',
          'template' => 'brand_sales_stats_form',
          'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
        ),
    'capacity_list_form' => array(
        'render element' => 'form',
        'template' => 'capacity_list_form',
        'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
        ),
    'capacity_edit_form' => array(
        'render element' => 'form',
        'template' => 'capacity_edit_form',
        'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
        ),
    'capacity_stats_form' => array(
          'render element' => 'form',
          'template' => 'capacity_stats_form',
          'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
        ),
    'competitors_list_form' => array(
        'render element' => 'form',
        'template' => 'competitors_list_form',
        'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
        ),
    'competitors_edit_form' => array(
        'render element' => 'form',
        'template' => 'competitors_edit_form',
        'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
        ),
      'competitors_stats_form' => array(
          'render element' => 'form',
          'template' => 'competitors_stats_form',
          'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
      ),
      'upgrade_review_farmer_list_form' => array(
          'render element' => 'form',
          'template' => 'upgrade_review_farmer_list_form',
          'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
      ),
      'upgrade_review_distributor_list_form' => array(
          'render element' => 'form',
          'template' => 'upgrade_review_distributor_list_form',
          'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
      ),
    'distributor_list_form' => array(
        'render element' => 'form',
        'template' => 'distributor_list_form',
        'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
        ),
    'distributor_edit_form' => array(
          'render element' => 'form',
          'template' => 'distributor_edit_form',
          'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
        ),
    'plant_structure_list_form' => array(
        'render element' => 'form',
        'template' => 'plant_structure_list_form',
        'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
        ),
    'plant_structure_edit_form' => array(
          'render element' => 'form',
          'template' => 'plant_structure_edit_form',
          'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
        ),
    'plant_structure_stats_form' => array(
          'render element' => 'form',
          'template' => 'plant_structure_stats_form',
          'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
        ),
    'product_sku_list_form' => array(
          'render element' => 'form',
          'template' => 'product_sku_list_form',
          'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
        ),
    'product_sku_edit_form' => array(
      'render element' => 'form',
      'template' => 'product_sku_edit_form',
      'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
       ),
    'sales_log_list_form' => array(
        'render element' => 'form',
        'template' => 'sales_log_list_form',
        'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
        ),
    'sales_log_edit_form' => array(
          'render element' => 'form',
          'template' => 'sales_log_edit_form',
          'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
      ),
    'monthly_report_list_form' => array(
        'render element' => 'form',
        'template' => 'monthly_report_list_form',
        'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
        ),
    'monthly_report_edit_form' => array(
        'render element' => 'form',
        'template' => 'monthly_report_edit_form',
        'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
        ),
    'sales_monthly_report_stats_form' => array(
        'render element' => 'form',
        'template' => 'sales_monthly_report_stats_form',
        'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
        ),
    'stock_info_list_form' => array(
        'render element' => 'form',
        'template' => 'stock_info_list_form',
        'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
        ),
    'stock_info_edit_form' => array(
        'render element' => 'form',
        'template' => 'stock_info_edit_form',
        'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
        ),
    'stock_info_stats_form' => array(
        'render element' => 'form',
        'template' => 'stock_info_stats_form',
        'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
        ),
    'invoice_list_form' => array(
        'render element' => 'form',
        'template' => 'invoice_list_form',
        'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
        ),
    'invoice_edit_form' => array(
        'render element' => 'form',
        'template' => 'invoice_edit_form',
        'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
        ),
    'sales_invoice_stats_form' => array(
        'render element' => 'form',
        'template' => 'sales_invoice_stats_form',
        'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
        ),
    'retailstore_list_form' => array(
        'render element' => 'form',
        'template' => 'retailstore_list_form',
        'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
        ),
    'retailstore_edit_form' => array(
          'render element' => 'form',
          'template' => 'retailstore_edit_form',
          'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
        ),
    'document_instance_list_form' => array(
        'render element' => 'form',
        'template' => 'document_instance_list_form',
        'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
        ),
    'document_instance_edit_form' => array(
        'render element' => 'form',
        'template' => 'document_instance_edit_form',
        'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
    ),
    'farmer_list_form' => array(
        'render element' => 'form',
        'template' => 'farmer_list_form',
        'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
        ),
    'farmer_edit_form' => array(
          'render element' => 'form',
          'template' => 'farmer_edit_form',
          'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
      ),
      'farmer_select_list_form' => array(
          'render element' => 'form',
          'template' => 'farmer_select_list_form',
          'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
      ),
      'overview_list_form' => array(
          'render element' => 'form',
          'template' => 'overview_list_form',
          'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
      ),
      'village_overview_list_form' => array(
          'render element' => 'form',
          'template' => 'village_overview_list_form',
          'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
      ),
    'plant_info_list_form' => array(
        'render element' => 'form',
        'template' => 'plant_info_list_form',
        'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
        ),
    'plant_info_edit_form' => array(
          'render element' => 'form',
          'template' => 'plant_info_edit_form',
          'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
        ),
    'soil_info_list_form' => array(
        'render element' => 'form',
        'template' => 'soil_info_list_form',
        'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
        ),
    'soil_info_edit_form' => array(
          'render element' => 'form',
          'template' => 'soil_info_edit_form',
          'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
        ),
    'fertilization_edit_form' => array(
          'render element' => 'form',
          'template' => 'fertilization_edit_form',
          'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
        ),
    'gift_list_form' => array(
        'render element' => 'form',
        'template' => 'gift_list_form',
        'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
        ),
    'gift_edit_form' => array(
        'render element' => 'form',
        'template' => 'gift_edit_form',
        'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
    ),
    'gift_assign_form' => array(
        'render element' => 'form',
        'template' => 'gift_assign_form',
        'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
       ),
    'salesman_distributor_map_list_form' => array(
        'render element' => 'form',
        'template' => 'salesman_distributor_map_list_form',
        'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
        ),
    'salesman_distributor_map_edit_form' => array(
          'render element' => 'form',
          'template' => 'salesman_distributor_map_edit_form',
          'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
      ),
    'distributor_assign_salesman_form' => array(
        'render element' => 'form',
        'template' => 'distributor_assign_salesman_form',
        'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
        ),
    'juris_map_list_form' => array(
        'render element' => 'form',
        'template' => 'juris_map_list_form',
        'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
        ),
    'juris_map_edit_form' => array(
          'render element' => 'form',
          'template' => 'juris_map_edit_form',
          'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
      ),
    'juris_list_form' => array(
          'render element' => 'form',
          'template' => 'juris_list_form',
          'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
        ),
    'juris_edit_form' => array(
        'render element' => 'form',
        'template' => 'juris_edit_form',
        'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
        ),
      'plant_list_form' => array(
          'render element' => 'form',
          'template' => 'plant_list_form',
          'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
      ),
      'plant_edit_form' => array(
          'render element' => 'form',
          'template' => 'plant_edit_form',
          'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
      ),
    'manage_brand_form_list' => array(
        'render element' => 'form',
        'template' => 'manage_brand_form_list',
        'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
        ),
    'manage_fertilizer_form_list' => array(
        'render element' => 'form',
        'template' => 'manage_fertilizer_form_list',
        'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
        ),
    'genuine_code_form_list' => array(
        'render element' => 'form',
        'template' => 'genuine_code_form_list',
        'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
        ),
    'online_agent_list_form' => array(
        'render element' => 'form',
        'template' => 'online_agent_list_form',
        'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
        ),
    'online_agent_edit_form' => array(
          'render element' => 'form',
          'template' => 'online_agent_edit_form',
          'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
        ),
    'manage_chat_list_form' => array(
        'render element' => 'form',
        'template' => 'manage_chat_list_form',
        'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
        ),
    'manage_chat_friend_list_form' => array(
        'render element' => 'form',
        'template' => 'manage_chat_friend_list_form',
        'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
        ),
    'manage_chat_groups_edit_form' => array(
          'render element' => 'form',
          'template' => 'manage_chat_groups_edit_form',
          'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
      ),
    'manage_chat_groups_list_form' => array(
          'render element' => 'form',
          'template' => 'manage_chat_groups_list_form',
          'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
      ),
    'manage_chat_message_list_form' => array(
        'render element' => 'form',
        'template' => 'manage_chat_message_list_form',
        'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
        ),
    'manage_chat_all_message_list_form' => array(
        'render element' => 'form',
        'template' => 'manage_chat_all_message_list_form',
        'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
        ),
    'manage_room_list_form' => array(
          'render element' => 'form',
          'template' => 'manage_room_list_form',
          'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
        ),
    'manage_room_edit_form' => array(
          'render element' => 'form',
          'template' => 'manage_room_edit_form',
          'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
        ),
    'manage_room_member_list_form' => array(
        'render element' => 'form',
        'template' => 'manage_room_member_list_form',
        'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
        ),
    'manage_room_member_add_form' => array(
        'render element' => 'form',
        'template' => 'manage_room_member_add_form',
        'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
      ),
    'document_template_list_form' => array(
        'render element' => 'form',
        'template' => 'document_template_list_form',
        'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
        ),
    'employee_list_form' => array(
        'render element' => 'form',
        'template' => 'employee_list_form',
        'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
        ),
    'employee_edit_form' => array(
          'render element' => 'form',
          'template' => 'employee_edit_form',
          'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
        ),
    'register_edit_form' => array(
        'render element' => 'form',
        'template' => 'register_edit_form',
        'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
        ),
    'upgrade_user_edit_form' => array(
          'render element' => 'form',
          'template' => 'upgrade_user_edit_form',
          'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
      ),
      'upgrade_user_result_form' => array(
          'render element' => 'form',
          'template' => 'upgrade_user_result_form',
          'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
      ),
    'bind_phone_form' => array(
        'render element' => 'form',
        'template' => 'bind_phone_form',
        'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
        ),
    'user_login' => array(
        'render element' => 'form',
        'template' => 'user_login',
        'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
        ),
      'user_pass' => array(
          'render element' => 'form',
          'template' => 'user_pass',
          'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
      ),
      'manage_address_form'=> array(
          'render element' => 'form',
          'template' => 'manage_address_form',
          'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
      ),
      'document_instance_edit_form' => array(
        'render element' => 'form',
        'template' => 'document_instance_edit_form',
        'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
        ),
      'document_instance_list_form' => array(
          'render element' => 'form',
          'template' => 'document_instance_list_form',
          'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
      ),
      'document_template_edit_form' => array(
          'render element' => 'form',
          'template' => 'document_template_edit_form',
          'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
      ),
      'contact_list_form'=> array(
          'render element' => 'form',
          'template' => 'contact_list_form',
          'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
      ),
      'nonghua_user_change_password_form'=> array(
          'render element' => 'form',
          'template' => 'nonghua_user_change_password_form',
          'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
      ),
      'edit_brand_form'=> array(
        'render element' => 'form',
        'template' => 'edit_brand_form',
        'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
      ),
      'edit_manage_fertilizer_form'=> array(
          'render element' => 'form',
          'template' => 'edit_manage_fertilizer_form',
          'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
      ),
      'distributor_select_list_form'=> array(
          'render element' => 'form',
          'template' => 'distributor_select_list_form',
          'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
      ),
      'plant_measure_item_list_form' => array(
          'render element' => 'form',
          'template' => 'plant_measure_item_list_form',
          'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
      ),
      'plant_measure_edit_form' => array(
          'render element' => 'form',
          'template' => 'plant_measure_edit_form',
          'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
      ),
      'plant_measure_list_form' => array(
          'render element' => 'form',
          'template' => 'plant_measure_list_form',
          'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
      ),
      'special_activities_list_form' => array(
          'render element' => 'form',
          'template' => 'special_activities_list_form',
          'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
      ),
      'special_activities_edit_form' => array(
          'render element' => 'form',
          'template' => 'special_activities_edit_form',
          'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
      ),
      'nonghua_browser_upgrade_form' => array(
          'render element' => 'form',
          'template' => 'nonghua_browser_upgrade',
          'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
      ),
      'nonghua_app_download_form' => array(
          'render element' => 'form',
          'template' => 'nonghua_app_download',
          'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
      ),
       'brand_sales_add_more_form' =>array(
        'render element' => 'form',
        'template' => 'brand_sales_add_more_form',
        'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
     ),
      'capacity_add_more_form' =>array(
          'render element' => 'form',
          'template' => 'capacity_add_more_form',
          'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
      ),
      'plant_structure_add_more_form' =>array(
          'render element' => 'form',
          'template' => 'plant_structure_add_more_form',
          'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
      ),
      'farmer_insert_list_form' =>array(
          'render element' => 'form',
          'template' => 'farmer_insert_list_form',
          'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
      ),
      'insert_address_form' =>array(
          'render element' => 'form',
          'template' => 'insert_address_form',
          'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
      ),
      'special_activities_overview_form' =>array(
          'render element' => 'form',
          'template' => 'special_activities_overview_form',
          'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
      ),
        'metercomm_import_form' =>array(
            'render element' => 'form',
            'template' => 'metercomm_import_form',
            'path' => drupal_get_path('theme', 'tweme') . '/templates/forms',
        )
    );
}

/**
 * Implements hook_css_alter().
 */
function tweme_css_alter(&$css) {
  unset($css['modules/poll/poll.css']);
}

/**
 * Implements hook_js_alter().
 */
function tweme_js_alter(&$js) {
  _tweme_upgrade_jquery($js['misc/jquery.js']);
}

function tweme_preprocess_node(&$variables) {
    $node = $variables ['node'];
    $variables ['theme_hook_suggestions'][] = "node__{$node->type}__{$variables ['view_mode']}";
}
